﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
    public class TacGiaBUS
    {

        public static int Them(TacGiaDTO tg)
        {
            if (tg._tenTacGia != "")
            {
                TacGiaDAO.Them(tg);
                return 0;
            }
            else
            {
                return 1;
            }
            
        }
        public static DataTable LayDSTacGia()
        {
            return TacGiaDAO.LayDSTacGia();
        }
        public static void Xoa(TacGiaDTO tg)
        {
            TacGiaDAO.Xoa(tg);
        }
        public static void Sua(TacGiaDTO tg)
        {
            TacGiaDAO.Sua(tg);
        }
    }
}
